package com.qdu.spring.blog.service.test1;

import com.qdu.spring.blog.bean.test1.User1;
import com.qdu.spring.blog.bean.test1.User1Example;
import com.qdu.spring.blog.service.BaseService;
import org.springframework.stereotype.Service;

@Service
public class User1Service extends BaseService<User1,User1Example> {
//    @Autowired
//    private User1Mapper user1Mapper;
    /**
     * page:当前页数
     * pageSize:当前展示多少个
    */
//    public PageInfo<User1> selectUser(int page,int pageSize){
//        //mysql 通过limit oracle 通过位列rownNmber sql通过top分页查询
//        //对List<User1> user1List = user1Mapper.selectByExample(null)查询语句进行分页
//        //底层实现原理采用改写语句，底层是获取sql语句然后进行拼接
//        PageHelper.startPage(page,pageSize);
//        List<User1> user1List = user1Mapper.selectByExample(null);
//        //返回给客户端显示
//        PageInfo<User1> user1PageInfo = new PageInfo<User1>(user1List);
//        return user1PageInfo;
//    }
}
